package com.jintoufs.domain.api.exception;

/**
 * API异常类
 * 
 * @author fuhuo.zhang
 * @since 2015-03-17
 */
public class ServiceApiException extends Exception {
    
    private static final long serialVersionUID = -1693268651752546088L;
    
    /**
     * 返回码
     */
    private int code;
    
    /**
     * 结果信息
     */
    private String message;
    
    ServiceApiException(int code, String message) {
        this.code = code;
        this.message = message;
    }
    
    ServiceApiException() {
    }
    
    public int getCode() {
        return code;
    }
    
    public void setCode(int code) {
        this.code = code;
    }
    
    public String getMessage() {
        return message;
    }
    
    public void setMessage(String message) {
        this.message = message;
    }
    
}
